<template>
    <div class="col-xs-offset-2 col-xs-8">
        <div class="page-header"><h2>Vue Router Demo</h2></div>
        <button @click="qj">前进</button>
        <button @click="th">后退</button>
        <button @click="gg">前进俩步</button>
    </div>
</template>

<script>
export default {
 name:'Banner',
 methods:{
    qj(){
         this.$router.forward()
    },
    th(){
         this.$router.back()
    },
    gg(){
        this.$router.go(-2)
    }
 }
}
</script>

<style>

</style>